package com.yuw.hw6;

public class Person {
	
	
	//属性
	private String perName;
	private int perAge;
	private double perHeight;
	
	
	

	//行为
/**
 * @param perName
 * @param perAge
 * @param perHeight
 */
public Person(String perName, int perAge, double perHeight) {
	super();
	this.perName = perName;
	this.perAge = perAge;
	this.perHeight = perHeight;
}
	/**
	 * 打招呼行为
	 */
	public void sayHello() {
		//打招呼
		System.out.println("Hello,I am "+this.perName);
	}
	public String getPerName() {
		return perName;
	}
	public void setPerName(String perName) {
		this.perName = perName;
	}
	public int getPerAge() {
		return perAge;
	}
	public void setPerAge(int perAge) {
		this.perAge = perAge;
	}
	public double getPerHeight() {
		return perHeight;
	}
	public void setPerHeight(double perHeight) {
		this.perHeight = perHeight;
	}
	
	

}
